#!/usr/bin/env bash


res=`curl -s http://www.luohao.work/ins/size`
echo $res


while [[  $res -gt 0 ]]
do
    res=`curl -s http://www.luohao.work/ins/size`
    ip=`curl -s http://www.luohao.work/ins/acc`
    cmd="sudo sh fire.sh ssh $ip"
    eval $cmd
#     echo "123"
done


